package Api;

import java.util.LinkedList;

public class LinkedListtTests {
    public static void main(String[] args) {
        LinkedList <Integer> list = new LinkedList();
        list.add(100);
        list.add(200);
        list.addFirst(300);
        list.addLast(600);
        System.out.println(list);
        Integer first= list.removeFirst();
        Integer last=list.removeLast();
        System.out.println(list);
        System.out.println(first+","+last);
        System.out.println(list.contains(Integer.valueOf(200)));
    }
}
